<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$title}</title>
<!-- Import google fonts - Heading first/ text second -->
<link rel='stylesheet' type='text/css' href='http://fonts.useso.com/css?family=Open+Sans:400,700|Droid+Sans:400,700' />
<!--[if lt IE 9]>
<link href="http://fonts.useso.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="__PUBLIC__/admin/assets/ico/favicon.ico" type="image/x-icon" />
<!-- Css files -->
<link href="__PUBLIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/jquery.mmenu.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/style.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/add-ons.min.css" rel="stylesheet">
<script src="__PUBLIC__/admin/assets/js/jquery-2.1.1.min.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<SCRIPT LANGUAGE=javascript>   
function p_del() {   
var msg = "确定删除本文章吗?";   
if (confirm(msg)==true){   
return true;   
}else{   
return false;   
}   
}

function tosubmit2() { 
var msg = "确定批量删除内容吗？删除将不可恢复！请确定！";   
if (confirm(msg)==true){   
document.submitform1.action="<?php echo U('p_del');?>";
 document.submitform1.submit(); 
 }else{   
   return false;   
 }  
}

$(function(){ 
   $("#qx").click(function(){ 
      var inputs = $('#app').find('input');
	  $(this).prop('checked') ? inputs.prop('checked','checked'):inputs.removeAttr('checked');
 });
});

function open_url(url)
{
 layer.open({
    type: 2,
    title:'订单处理',
    area: ['500px', '700px'],
    fix: false, //不固定
    maxmin: true,
    content: url
  });
}

</SCRIPT>
<body>
<!-- start: Header --> 
<include file="./head" /> 
<!-- end: Header -->
<div class="container-fluid content">
<div class="row"> 
  <!-- start: Main Menu --> 
  <include file="./slide" /> 
  <!-- end: Main Menu --> 
  <!-- start: Content -->
  <div class="main sidebar-minified">
    <div class="row">
      <div class="col-lg-12">
        <div class="panel panel-default">
          <div class="panel-heading">
            <h2><i class="fa fa-table red"></i><span class="break"></span><strong>{$title}</strong></h2>
            <div class="panel-actions"> <a href="table.html#" class="btn-setting"><i class="fa fa-rotate-right"></i></a> <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a> </div>
          </div>
          <form name="submitform1" action="" method="get"  >
          <div class="panel-body">
            <a class="btn btn-success" href="{:U("Shop/order")}">等待处理</a> 
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>9))}">等待确认</a>
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>2))}">已确认,等待发货</a>
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>3))}">已发货</a>
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>4))}">已签收</a>
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>5))}">拒收</a>
            <a class="btn btn-success" href="{:U('Shop/order',array('type'=>7))}">无效订单</a>
            

          <form action="" method="get" style=" float:left;margin-right:10px;" >
          <select class="btn"  name="select" id="select" style="float:left;margin-right:10px;">
            <option value="0">请选择查询类型</option>
            <option value ="item_id" <?php if(I('get.select')=='item_id'){ ?>selected <?php }?> >商品id</option>
            <option value ="name" <?php if(I('get.select')=='name'){ ?>selected <?php }?> >姓名</option>
            <option value ="tel" <?php if(I('get.select')=='tel'){ ?>selected <?php }?> >电话</option>
            <option value ="nu" <?php if(I('get.select')=='nu'){ ?>selected <?php }?> >快递单号</option>
          </select>

          <input name="nr" id="nr" type="text" class="form-control" value="{:I('get.nr')}" style="width:10%;float:left;margin-right:10px;" />
    
          <button type="submit" class="btn btn-primary btn-success" id="but" style="float:left;margin-right:10px;"><i class="fa fa-dot-circle-o"></i> 查询 </button>
          </form>


          </div>
          <div class="panel-body">
            <table class="table table-striped table-bordered bootstrap-datatable datatable"  >
              <thead>
                <tr>
                  <th width="4%"><input type="checkbox" id="qx" >
                    ID</th>
                  <th>时间</th>
                  <th>会员id</th>
                  <th>商品ID</th>
                  <th>套餐/价格/提成</th>
                  <th>订购姓名</th>
                  <th>电话</th>
                  <th>地址</th>
                  <th>IP</th>
                  <th>付款方式</th>
                  <th>订单状态</th>
                  <th width="10%">操作</th>
                </tr>
              </thead> 
              <tbody id="app">
                <?php
               foreach($order_list as $v):?>
                <tr >
                  <td><input name="id[]" type="checkbox" value="{$v['id']}">
                    {$v['id']}</td>
                  <td>{:date("y-m-d h:i:s",$v['time'])}</td>
                  <td>{$v['uid']}</td>
                  <td>{$v['item_id']}</td>
                  <td>{$v['suk_name']} / {$v['suk_price']} / {$v['suk_ticheng']}</td>
                  <td>{$v['name']}</td>
                   <td>{$v['tel']}</td>
                   <td>{$v['province']}{$v['city']}{$v['area']}{$v['xxdz']}</td>
                  <td><a href="http://www.ip138.com/ips138.asp?ip={$v['ip']}&action=2" target="_blank">{$v['ip']}</a></td>
                  <td>{$v['identity']}</td>
                  <td>{:order_type($v['type'])}</td>
                  <td>
                      <a class="btn btn-info" href="javascript:open_url('{:U("Shop/order_show/",array('id'=>$v['id']))}')"> <i class="fa fa-edit "></i> </a> 
                      <a class="btn btn-danger" href="{:U("News/dels/",array('id'=>$v['id']))}" onclick="javascript:return p_del()" > <i class="fa fa-trash-o "></i></a>
                  </td>
                </tr>
                <?php endforeach;?>
              </tbody>
            </table>
            <?php if($page){?>
            <ul class="pagination">
              <?php echo $page; ?>
            </ul>
            <?php }?>
          </div>
        </div>
      </div>
      <!--/col--> 
      </form>
    </div>
  </div>
</div>
<div class="clearfix"></div>
<script src="__PUBLIC__/admin/assets/js/jquery-2.1.1.min.js"></script> 
<!--<![endif]--> 
<!--[if IE]>
<script src="__PUBLIC__/admin/assets/js/jquery-1.11.1.min.js"></script>
<![endif]--> 
<!--[if !IE]>--> 
<script type="text/javascript">
			window.jQuery || document.write("<script src='__PUBLIC__/admin/assets/js/jquery-2.1.1.min.js'>"+"<"+"/script>");
</script> 
<!--<![endif]--> 
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='__PUBLIC__/admin/assets/js/jquery-1.11.1.min.js'>"+"<"+"/script>");
</script>

<![endif]--> 
<script src="__PUBLIC__/admin/assets/js/bootstrap.min.js"></script> 
<!-- page scripts --> 
<script src="__PUBLIC__/admin/assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script> 
<script src="__PUBLIC__/admin/assets/plugins/datatables/js/jquery.dataTables.min.js"></script> 
<script src="__PUBLIC__/admin/assets/plugins/datatables/js/dataTables.bootstrap.min.js"></script> 
<!-- theme scripts --> 
<script src="__PUBLIC__/admin/assets/js/SmoothScroll.js"></script> 
<script src="__PUBLIC__/admin/assets/js/jquery.mmenu.min.js"></script> 
<script src="__PUBLIC__/admin/assets/js/core.min.js"></script> 
<!-- inline scripts related to this page --> 
<script src="__PUBLIC__/admin/assets/js/pages/table.js"></script> 
<!-- end: JavaScript-->
</body>
</html>